package yy.yyds.org.mapper;

import yy.yyds.org.domain.Department;
import yy.yyds.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    void add(Department department);

    void delete (Long id);

    void update(Department department);

    Department loadOne(Long id);

    List<Department> loadAll();
    /*下面两个是分页查询所需方法*/
    /*查询总条数*/
    Integer queryCount(DepartmentQuery query);
    /*查询当前页的数据*/
    List<Department>queryList(DepartmentQuery departmentQuery);

    void batchDelete(List<Long> ids);

    List<Department> getTree();
}
